// api/workspaces/workspace.serializer.js
import BaseSerializer from "../../serializers/base.serializer.js";

class WorkspaceSerializer extends BaseSerializer {
  constructor() {
    super();
    this.properties = [
      "_id",
      "name",
      "slug",
      "description",
      "timezone",
      "fileType",
      "fileSize",
      "metadata",
      "isPublic",
      "accountId",
      "userId",
      "ownerId",
      "teams",
      "lastAccessed",
      "createdAt",
      "updatedAt",
      
      // Nested structures
      "members",
      "contacts",
      "projects", 
      "meetings",
      "notes",
      "tasks",
      
      // MySQL connection fields
      "mysqlHost",
      "mysqlPort",
      "mysqlUser",
      "mysqlPassword",
      "mysqlDatabase",
      "mysqlTable",
      "mysqlConnectionType"
    ];
  }
}

export default new WorkspaceSerializer();